			function begin(){
		    	$('.loading').hide();
		    	$('.fs').show()
		    }
		    setTimeout(begin,3000);
			function getup(){
				$('.fs-bed img').attr('src','img/bed2.png');
				$('.fs-man').show();
				$('.fs-yan').show();
				$('.fs-line').show();
			}
			setTimeout(getup,6000);
			function black(){
				$('.fs-black').show();
			}
			setTimeout(black,7000);			
			function secondShow(){
				$('.sc').show();
				$('.sc-time').animate({'left':'20%'},500,'linear','forwards');
			}
			setTimeout(secondShow,8000);
			function firsthide(){
				$('.fs').hide();
			}
			setTimeout(firsthide,8100);
			function scChange(){
				$('.sc-one').animate({'opacity':'0'},1500,'linear','forwards');
				$('.sc-two').animate({'opacity':'1'},1500,'linear','forwards');
			}
			setTimeout(scChange,10500);
			function black2(){
				$('.sc-black').show();
			}
			setTimeout(black2,13000);	
			function trShow(){
				function bird(){
					var n=1;  
		            setInterval(function(){   
		                $('.tr-bird img').attr('src','img/tr-bird'+n+'.png');  
		                if(n<2){
		                	n++
		                }else{
		                	n=1
		                }
		            },300);  
				}
				bird();
				$('.tr').show();
				$('.sc').hide();
                function lingShow(){
	                $('.tr-dian1').show();
	                $('.tr-dian2').show();
	                $('.tr-ling').show();               	
	            }
	            setTimeout(lingShow,3000);
	            function carStop(){
	            	$('.tr-car').addClass('tr-car-stop');
	            	$('.tr-lt2').addClass('tr-lt2-stop');	                
	            }
	            setTimeout(carStop,5200);
	            function stopcar(){
	            	$('.tr-yan').hide();
	            	$('.tr-dian1').hide();
	                $('.tr-dian2').hide();
	                $('.tr-ling').hide();	                
	                $('.tr-ren img').attr('src','img/p3-ren2.png');
	            }
	            setTimeout(stopcar,6000);
			}
			setTimeout(trShow,14000);
			function black3(){
				$('.tr-black').show();
			}
			setTimeout(black3,21000);
			function frShow(){
				$('.for').show();
				$('.tr').hide();
			}
            setTimeout(frShow,22000);
            function black4(){
				$('.for-black').show();
			}
			setTimeout(black4,37000);
            function fvShow(){
				$('.for').hide();
				$('.fv').show();
				fvcome();
			}
            setTimeout(fvShow,38000);
            function fvcome(){
		    	var xs=true;
				function w1Show(){
					 $('.fv-w1').css({'opacity':'1'});
				}
				setTimeout(w1Show,1500)
				function w2Show(){
					 $('.fv-w1').css({'opacity':'0'});
					 $('.fv-w2').css({'opacity':'1'});
				}
				setTimeout(w2Show,3500)
				function kHide(){
					$('.fv-k').hide();
					$('.fv-door').hide();
					dj();
				}			
				setTimeout(kHide,6000);
				var i=1;
				function change(){
					if(i==$('.fv-video-fvc img').length) {
						console.print(i);
						return false;
					}
					$('.fv-video-fvc img').eq(i).addClass('fv-video-show').removeClass('fv-video-hide').siblings().addClass('fv-video-hide').removeClass('fv-video-show');
					i++;
					setTimeout(change,3000);
			    }
				function dj(){
					$('.fv-tv').click(function(){
						$('.fv-video').show();
						setTimeout(change,3000);
						xs=false;
					})
					$('.close').click(function(){
						$('.fv-video').hide();
		                i=1;
		                xs=true;
		                setTimeout(sixShow,1000);
					})
					function sixShow(){
						if(xs==true){
							xs=true;
							fvhide();
						}						
					}
					setTimeout(sixShow,4000);
					function fvhide(){
						function fvroomHide(){
							$('.room').hide();
							$('.sx').show();							
							$('.fv-black').hide();
							$('.fv-six').hide();
						}
						setTimeout(fvroomHide,1000)
						function ssshow(){
							sixpageShow();
							$('.fv').hide();							
						}
						setTimeout(ssshow,2000)
						$('.fv-black').show();
						$('.fv-six').show();
					}
				}
		    }
			function sixpageShow(){
				function ballShow(){
			    	function b1Show(){
						$('.sx-ball1').show();
					}
					setTimeout(b1Show,1000)
					function b2Show(){
						$('.sx-ball2').show();
					}
					setTimeout(b2Show,1500)
					function b3Show(){
						$('.sx-ball3').show();
					}
					setTimeout(b3Show,2000)
			    }
				setTimeout(ballShow,4000)		
				function m1Show(){
					$('.sx-m1').show();
					$('.sx-ball3').hide();
				}
				setTimeout(m1Show,6500)
				function m2Show(){
					$('.sx-m2').show();
					$('.sx-ball2').hide();
				}
				setTimeout(m2Show,7500)
				function m3Show(){
					$('.sx-m3').show();
					$('.sx-ball1').hide();
				}
				setTimeout(m3Show,8500)
				function m4Show(){
					$('.sx-m4').show();
				}
				setTimeout(m4Show,9500)
				function mAllhide(){
					$('.sx-m4').addClass('zoomOut').removeClass('zoomIn');
					$('.sx-m3').addClass('zoomOut').removeClass('zoomIn');
					$('.sx-m2').addClass('zoomOut').removeClass('zoomIn');
					$('.sx-m1').addClass('zoomOut').removeClass('zoomIn');
					ballShow();
				}
				setTimeout(mAllhide,11000)
				function yw1Show(){
					$('.sx-yw1').show();
					$('.sx-ball3').hide();
					$('.sx-ball2').hide();
					$('.sx-ball1').hide();
				}
				setTimeout( yw1Show,13500)
				function yw1Hide(){
					$('.sx-yw1').addClass('zoomOut').removeClass('zoomIn');
				}
				setTimeout( yw1Hide,15500)
				function yw2Show(){				
					$('.sx-yw2').show();
					$('.sx-yw3').show();
				}
				setTimeout(yw2Show,16500)
				function sxdian(){
					$('.sx-yw2').addClass('zoomOut').removeClass('zoomIn');
					$('.sx-yw3').addClass('zoomOut').removeClass('zoomIn');
					$('.sx-dian1').show();
					function ss(){
						$('.sx-dian2').show();
					}
					setTimeout(ss,750)
				}
				setTimeout(sxdian,18500)
				function sxbig(){
					$('.sx-bd').removeClass('sx-bd-small').addClass('sx-bd-big');
					$('.sx-one').show();
					$('.sx-man').removeClass('sx-man-move').addClass('sx-man-leave');
				}
				setTimeout(sxbig,21000)
				    function svman(){
						var n=1;  
			            setInterval(function(){   
			                $('.sv-man img').attr('src','img/sv-man'+n+'.png');  
			                if(n<2){
			                	n++
			                }else{
			                	n=1
			                }
			            },500);  
					}
				svman();
				function svShow(){
					$('.sv').show();
					function sxHide(){
						$('.sx').hide();
					}
					setTimeout(sxHide,1000)
				}
				setTimeout(svShow,26000)
				$('.sv-fx').click(function(){
					$('.sv-c').show();
				})
				$('.sv-c').click(function(){
					$('.sv-c').hide();
				})
			}
//音乐
function audioAutoPlay(id){
	var audio = document.getElementById(id);
	audio.play();
	document.addEventListener("WeixinJSBridgeReady", function () {
	audio.play();
	}, false);
}
        function play_music(){
	        if ($('#mc_play').hasClass('onx')){
	            $('#mc_play audio').get(0).pause();
	            $('#mc_play').attr('class','stop');
	        }else{
	            $('#mc_play audio').get(0).play();
	            $('#mc_play').attr('class','onx');
	        }
	        $('#music_play_filter').hide();
	        event.stopPropagation(); //阻止冒泡 
			}
		    function just_play(id){
		        $('#mc_play audio').get(0).play();
		        $('#mc_play').attr('class','onx');
		        if (typeof(id)!='undefined'){
		            $('#music_play_filter').hide();
		        }
		        event.stopPropagation(); //阻止冒泡 
		    } 
		    function is_weixn(){
		        return false;
		        var ua = navigator.userAgent.toLowerCase();
		        if(ua.match(/MicroMessenger/i)=="micromessenger") {
		            return true;
		        } else {
		            return false;
		        }
		    }
		     window.onload=function(){
		        if (!is_weixn()){
		            just_play();		            
		        }
		       
		    }
audioAutoPlay('musicfx');
$(function(){
    $(".sv-again").click(function(){
        refresh();
    });
});
//点击按钮调用的方法
function refresh(){
    window.location.reload();
}
